#!/usr/bin/python2.5
#

import utility, django
from google.appengine.api import users

def get_url(request, path_str):
  ver = django.VERSION
  user = users.get_current_user()
  if user:
    logout = users.create_logout_url("/");
  else:
    logout = users.create_login_url("/");
  return utility.respond(request, 'index', {'ver':ver,'user':user,'logout':logout})
